package cn.itsource.basic.query;

import lombok.Data;

@Data
public class BaseQuery {
    private Integer currentPage = 1;
    private Integer pageSize = 6;

    private String keyword;             //过滤条件

    //limit后面的第一个参数
    public Integer getBegin(){
        return (currentPage-1)*pageSize;
    }
}
